package com.mfc.education.service.statistics.feign;

import com.mfc.education.common.base.result.R;
import com.mfc.education.service.statistics.feign.fallback.UcenterMemberServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author mfc
 * @since 2021/10/5
 */
@FeignClient(value = "service-ucenter", fallback = UcenterMemberServiceFallBack.class)
@Service
public interface UcenterMemberService {

    @GetMapping(value = "/admin/ucenter/member/count-register-num/")
    R countRegisterNum(@RequestParam("day") String day);
}